package com.heima.homeservicemanagementsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.homeservicemanagementsystem.entity.BuyrOrder;
import com.heima.homeservicemanagementsystem.module.Result;
import org.apache.coyote.BadRequestException;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单(BuyrOrder)表服务接口
 *
 * @author makejava
 * @since 2025-04-25 11:36:00
 */
@Service
public interface BuyrOrderService extends IService<BuyrOrder> {

    String createrOrder(BuyrOrder buyrOrder) throws BadRequestException;

    Result<List<BuyrOrder>> findByServiceIdJson(String userid,String orderstatus);

    Result<List<BuyrOrder>> findByuserIdJson(String userid);
}

